package com.todod.model;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author dyl
 * @date 2021-03-12
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.public_catalog")
public class PublicCatalog implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 主键id */
	@TableId("gft_id")
	private Long id;
	/** 公司id */
	@TableField("gft_department_id")
	private Long departmentId;
	/** 父Id */
	@TableField("gft_parent_id")
	private Long parentId;
	/** 目录名称 */
	@TableField("gft_type_name")
	private String typeName;
	/** 标识（M全部用户可见（管理员创建）：U公司可见（公司创建）） */
	@TableField("gft_flag")
	private String flag;
	/** 排序号 */
	@TableField("gft_levels")
	private String levels;
	/** 状态 */
	@TableField("gft_state")
	private String state;
	/** 排序号 */
	@TableField("gft_sort_num")
	private Integer sortNum;
	/** 创建用户id */
	@TableField("gft_createuser_id")
	private Long createuserId;
	/** 创建时间 */
	@TableField("gft_createtime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createtimeTi;
	/** 修改用户名id */
	@TableField("gft_modifyuser_id")
	private Long modifyuserId;
	/** 修改时间 */
	@TableField("gft_modifytime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifytimeTi;

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String shareFlag;// 共享

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private List<PublicCatalog> children2;// 子文件夹及文件

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private List<PublicFile> listFile;// 子文件

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String suffix;// 后缀

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getLevels() {
		return levels;
	}

	public void setLevels(String levels) {
		this.levels = levels;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public Long getCreateuserId() {
		return createuserId;
	}

	public void setCreateuserId(Long createuserId) {
		this.createuserId = createuserId;
	}

	public LocalDateTime getCreatetimeTi() {
		return createtimeTi;
	}

	public void setCreatetimeTi(LocalDateTime createtimeTi) {
		this.createtimeTi = createtimeTi;
	}

	public Long getModifyuserId() {
		return modifyuserId;
	}

	public void setModifyuserId(Long modifyuserId) {
		this.modifyuserId = modifyuserId;
	}

	public LocalDateTime getModifytimeTi() {
		return modifytimeTi;
	}

	public void setModifytimeTi(LocalDateTime modifytimeTi) {
		this.modifytimeTi = modifytimeTi;
	}

	public String getShareFlag() {
		return shareFlag;
	}

	public void setShareFlag(String shareFlag) {
		this.shareFlag = shareFlag;
	}

	public List<PublicCatalog> getChildren2() {
		return children2;
	}

	public void setChildren2(List<PublicCatalog> children2) {
		this.children2 = children2;
	}

	public List<PublicFile> getListFile() {
		return listFile;
	}

	public void setListFile(List<PublicFile> listFile) {
		this.listFile = listFile;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	@Override
	public String toString() {
		return "PublicCatalog [id=" + id + ", departmentId=" + departmentId + ", parentId=" + parentId + ", typeName="
				+ typeName + ", flag=" + flag + ", levels=" + levels + ", state=" + state + ", sortNum=" + sortNum
				+ ", createuserId=" + createuserId + ", createtimeTi=" + createtimeTi + ", modifyuserId=" + modifyuserId
				+ ", modifytimeTi=" + modifytimeTi + "]";
	}

}
